package com.guangzi.mapper;

import com.guangzi.common.Pager;
import com.guangzi.entity.ControllerStatusVO;
import com.guangzi.entity.TzbVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface TzbDao extends BaseDao {

    @Override
    List<Object> listPager(@Param("pager") Pager pager);

    @Override
    List <Object> listPagerCriteria(@Param("pager") Pager pager, @Param("query") Object obj);

    @Override
    Long countCriteria(@Param("query") Object obj);


    List<Object> listPagerById(@Param("pager") Pager pager,@Param("id") Long id);

    List<Object> listPagerByUId(@Param("pager") Pager pager,@Param("query") Object obj);

    Long getCount( @Param("query") Object obj);

    Long countById(@Param("id") Long id);

    TzbVO listTzb(@Param("uid") Long uid, @Param("baid") Long baid);

    ControllerStatusVO add(Object obj);

    @Override
    void save(Object obj);

    @Override
    Long count();
}
